package com.hornsun;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by 编译中... on 2018/5/9.
 */
@Controller
@RequestMapping("/html")
public class HtmlController {
    @RequestMapping(value = "/information", method = RequestMethod.GET)
    public String toInformation(){
        return "information";
    }

    @RequestMapping(value = "/commodity", method = RequestMethod.GET)
    public String toCommodity(){
        return "commodity";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String login(){
        return "index";
    }
}
